package com.engine4cloud.tdf.supervision.convert;

import com.engine4cloud.tdf.supervision.dto.create.TerminalFamilySocietyCreateDTO;
import com.engine4cloud.tdf.supervision.dto.result.TerminalFamilySocietyResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.TerminalFamilySocietyUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.JzdxFamilySocietyEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface JzdxTerminalFamilySocietyConvert {

    JzdxTerminalFamilySocietyConvert INSTANCE = Mappers.getMapper(JzdxTerminalFamilySocietyConvert.class);

    JzdxFamilySocietyEntity create(TerminalFamilySocietyCreateDTO s, Long tenantId);

    JzdxFamilySocietyEntity update(TerminalFamilySocietyUpdateDTO s, Long tenantId);

    TerminalFamilySocietyResultDTO convert(JzdxFamilySocietyEntity s);
}
